package com.deke.home.controller;

import com.deke.home.service.QianSubjectService;
import com.deke.home.service.QianZoneService;
import com.deke.home.service.TbZoneService;
import com.deke.vo.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：Username 刘亦辰（59372312@qq.com）
 * @date ：Created in 2022/12/21 11:10
 * @description：前台zone
 * @modified By：
 * @version:
 **/
@Api(tags = "前台专区管理")
@RestController
@RequestMapping("/home/qian/zone")
public class QianZoneController {
    @Autowired
    private QianZoneService qianZoneService;

    @Autowired
    private QianSubjectService subjectService;

    @GetMapping("getAllQianZone")
    public Result getAllQianZone(){
       return qianZoneService.getAllQianZone();
    }

    @GetMapping("getAllQianMenu")
    public Result getAllQianMenu(){
        return subjectService.getAllQianMenu();
    }
}